<template>
  <view class="write-work-report">
    <NavBar
      v-if="isH5"
      title="我的文件"
    />
    <view class="write-work-report-box">
      <view class="write-work-report-form">
        <view class="write-form-item">
          <view class="form-item-label">今日总结<text> *</text></view>
          <view class="form-item-input">
            <input
              type="text"
              placeholder="请输入汇报内容"
            />
          </view>
        </view>
        <view class="write-form-item">
          <view class="form-item-label">明日工作计划<text> *</text></view>
          <view class="form-item-input">
            <input
              type="text"
              placeholder="请输入汇报内容"
            />
          </view>
        </view>
        <view class="write-form-item">
          <view class="form-item-label">需要协调与帮助</view>
          <view class="form-item-input">
            <input
              type="text"
              placeholder="请输入汇报内容"
            />
          </view>
        </view>
      </view>
    </view>
    <view class="report-who">
      <view class="write-work-report-form">
        <view class="write-form-item">
          <view class="form-item-label">汇报给谁<text> *</text></view>
          <view class="form-item-input">
            <input
              type="text"
              placeholder="请输入汇报内容"
            />
          </view>
        </view>
        <view class="write-form-switch">
          <view class="form-item-label">是否允许他人转发</view>
          <view class="form-item-input">
            <switch
              checked
              color="#2D8CF0"
              style="transform: scale(0.7)"
            />
          </view>
        </view>
      </view>
    </view>
    <view class="report-btn">
      <nut-button color="#1E74FD">提交</nut-button>
    </view>
  </view>
</template>

<script lang="ts" setup>
import NavBar from "@/components/navBar/index.vue";
// const isIOS = /iPhone|iPad|iPod/i.test(navigator.userAgent);
console.log(process.env.TARO_ENV, "process.env.TARO_ENV");
const isWeapp = process.env.TARO_ENV === "weapp";
const isH5 = process.env.TARO_ENV === "h5";
</script>

<style lang="less">
@import "./index.less";
</style>
